<%@ page language="java"
	import="com.byxy.model.FlowInfo, com.byxy.service.FlowInfoServiceImpl, com.byxy.util.DateUtil"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>detailed.jsp</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="Styles/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="Styles/admin-all.css" />
<script type="text/javascript" src="Scripts/jquery-1.7.2.js"></script>
<script type="text/javascript"
	src="Scripts/jquery-ui-1.8.22.custom.min.js"></script>
<link rel="stylesheet" type="text/css"
	href="Styles/ui-lightness/jquery-ui-1.8.22.custom.css" />

</head>

<body>
	<%
		int id = Integer.parseInt(request.getParameter("id"));
		FlowInfoServiceImpl flowSer = new FlowInfoServiceImpl();
		FlowInfo flow = flowSer.findById(id);
	%>
	<h1>时间格式：yyyy-MM-dd</h1>
	<h2>例如：2017-01-01</h2>
	<p>根据编号修改对应信息</p>

	<form action="../FlowInfoUpdaetServlet" method="post"
		onSubmit="return chkads()" name="lf_addstu">
		<table class="table table-striped table-bordered table-condensed list">
			<tr>
				<td>编号：</td>
				<td>姓名：</td>
				<td>性别：</td>
				<td>民族：</td>
				<td>出生年月：</td>
			</tr>
			<tr class="demo">
				<td><div><%=flow.getId()%></div></td>
				<td><div><%=flow.getName()%></div></td>
				<td><div><%=flow.getSex()%></div></td>
				<td><div><%=flow.getFamilyName()%></div></td>
				<td><div><%=DateUtil.utilDateTosqlDate(flow.getBirthday())%></div></td>
			</tr>
			<tr>
				<td>党龄：</td>
				<td>学历：</td>
				<td>曾任党内职务：</td>
				<td>流出时间：</td>
				<td>外出类型：</td>
			</tr>
			<tr class="demo">
				<td><div><%=flow.getPartyOrganizationCategory()%></div></td>
				<td><div><%=flow.getEducation()%></div></td>
				<td><div><%=flow.getPosted()%></div></td>
				<td><div><%=DateUtil.utilDateTosqlDate(flow.getDeliveryHours())%></div></td>
				<td><div><%=flow.getExitType()%></div></td>
			<tr>
				<td>外出流向：</td>
				<td>党组织类别：</td>
				<td>与党支部联系情况：</td>
				<td>是否持有流动党员证：</td>
				<td>流出支部联系人：</td>
			</tr>
			<tr class="demo">
				<td><div><%=flow.getOutgoingFlow()%></div></td>
				<td><div><%=flow.getPartyOrganizationCategory()%></div></td>
				<td><div><%=flow.getContactWithPartyBranch()%></div></td>
				<td><div>
						<%
							if (flow.isMobilePartyCard() == true) {
								out.print("是");
							} else {
								out.print("否");
							}
						%>
					</div></td>
				<td><div><%=flow.getOutflowBranchContactName()%></div></td>
			</tr>
			<tr>
				<td>流出支部联系方式：</td>
				<td>流入支部联系人：</td>
				<td>流入支部联系方式：</td>
				<td>联系电话：</td>
				<td>qq号：</td>
			</tr>
			<tr class="demo">
				<td><div><%=flow.getOutflowBranchContactPhone()%></div></td>
				<td><div><%=flow.getInflowBranchContactName()%></div></td>
				<td><div><%=flow.getInflowBranchContactPhone()%></div></td>
				<td><div><%=flow.getContactNumber()%></div></td>
				<td><div><%=flow.getQqNumber()%></div></td>
			</tr>
			<tr>
				<td colspan="6">微信号：</td>

			</tr>
			<tr class="demo">
				<td><div><%=flow.getWechatNumber()%></div></td>


			</tr>
			</form>
</body>
</html>
